<?php

namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use App\Repositories\Eloquent\Resources;

class ResourcesServiceProvider extends ServiceProvider{
    public function boot(){
    }
    public function register(){
        //单列绑定门面
        $this->app->singleton('resources',function(){
            return new Resources();
        });
        //绑定接口
        $this->app->bind('App\Repositories\Contracts\ResourcesContract',function(){
            return new Resources();
        });
    }
}
